<!DOCTYPE html>
<html>
    {include file="Widgets/head" /}
    <style>
        img{width: 200px}
        span{color: #cc181b}
    </style>
    <body class="gray-bg">
        <div class="wrapper wrapper-content animated fadeInUp ibox-content">
            <form action="" method="">
                <div class="row">
                    <div class="col-sm-12 ">
                        <div class="ibox-title">
                            <h3>独立借款人-详情</h3>
                        </div>
                    </div>
                </div>
                <ul id="myTab" class="nav nav-tabs">
                    <li class="active"><a href="#home1" data-toggle="tab">基本信息</a></li>
                    <li><a href="#home2" data-toggle="tab">借款信息</a></li>
                    <li><a href="#home3" data-toggle="tab">其他信息</a></li>
                </ul>
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade in active" style="padding-top: 20px" id="home1">
                        <div class="row">
                            <div class="col-sm-1 text-right">姓名：</div>
                            <div class="col-sm-2">{$pool['real_name']}</div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="row">
                            <div class="col-sm-1 text-right">手机号：</div>
                            <div class="col-sm-2">{$pool['user_phone']}</div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="row">
                            <div class="col-sm-1 text-right">身份证：</div>
                            <div class="col-sm-2">{$pool['idcard']}</div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="row">
                            <div class="col-sm-1 text-right">支付密码：</div>
                            <div class="col-sm-2">已设置</div>
                        </div>
<!--                        <div class="hr-line-dashed"></div>
                        <div class="row">
                            <div class="col-sm-1 text-right">征信状况：</div>
                            <div class="col-sm-10">
                                <label class="radio-inline">
                                    <input type="radio" name="credit" checked>非常好
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="credit">良好
                                </label>
                                <label class="radio-inline" name="credit">
                                    <input type="radio">差
                                </label>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="row">
                            <div class="col-sm-1 text-right">征信记录：</div>
                            <div class="col-sm-2">
                                <a href="" download="个人征信记录.pdf">个人征信记录.pdf</a>
                            </div>
                        </div>-->
                    </div>
                                     
                    <div class="tab-pane fade in"  style="padding-top: 20px" id="home2">
                        <div class="row">
                            <div class="col-sm-12">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr>
                                            <th>车牌号</th>
                                            <th>车辆型号</th>
                                            <th>车辆评估值</th>
                                            <th>借款金额</th>
                                            <th>借款期限</th>
                                            <th>放款期限</th>
                                            <th>放款比率</th>
                                            <th>放款金额</th>
                                            <th>还款方式</th>
                                            <th>还款来源</th>
                                            <th>资金用途</th>
                                            <th>应还本息</th>
                                            <th>已还金额</th>
                                            <th>剩余应还金额</th>
                                            <th>关联资产</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>{$pool['car_num']}</td>
                                            <td>{$pool['car_type']}</td>
                                            <td>{$pool['car_price']}</td>
                                            <td>{$pool['money']}</td>
                                            <td>{$pool['duration_all']}</td>
                                            <td>{$pool['duration']}</td>
                                            <td>{$pool['percent']}</td>
                                            <td>{$pool['amount']}</td>
                                            <td>{$pool['repayment_type']}</td>
                                            <td>{$pool['repayment_source']}</td>
                                            <td>{$pool['money_use_for']}</td>
                                            <td>
                                                {if (in_array($pool['status'], [2, 3]))}
                                                    {$pool['pay_money']}
                                                {/if}
                                            </td>
                                            <td>
                                                {if (in_array($pool['status'], [2, 3]))}
                                                    {$pool['payed']}
                                                {/if}
                                            </td>
                                            <td>
                                                {if (in_array($pool['status'], [2, 3]))}
                                                    {$pool['need_pay']}
                                                {/if}
                                            </td>
                                            <td>{$pool['code']}</td>
                                            <td>{$pool['status_name']}</td>
                                            <td>
                                                {if (in_array($pool['status'], [2, 3]))}
                                                    <a href="{:url('Management/investDetail',['id'=>$pool['id']])}" class="btn btn-info">投资明细</a>
                                                {/if}
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                                        
                    <div class="tab-pane fade in" style="padding-top: 20px" id="home3">
                        <div>
                            <div class="row">
                                <div class="col-sm-1 text-right">所在省市：</div>
                                <div class="col-sm-2">{$pool['location']}</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="row">
                                <div class="col-sm-1 text-right">居住地址：</div>
                                <div class="col-sm-2">{$pool['address']}</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="row">
                                <div class="col-sm-1 text-right">常用联系人：</div>
                                <div class="col-sm-2">{$pool['contacts']}</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="row">
                                <div class="col-sm-1 text-right">所在公司名称：</div>
                                <div class="col-sm-2">{$pool['company_name']}</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="row">
                                <div class="col-sm-1 text-right">所在行业类别：</div>
                                <div class="col-sm-2">{$pool['industry']}</div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            {if (isset($files))}
                            <div class="row">
                                <div class="col-sm-1 text-right">电子资料附件：</div>
                                <div class="col-sm-2">
                                    {foreach $files as $val} 
                                        <a href="{$val['url']}" download="{$val['title']}">{$val['title']}</a>
                                        <br />
                                    {/foreach}
                                </div>
                            </div>
                            {/if}
                        </div>
                    </div>
                </div>
                <div class="row text-center">
                    <a href="javascript:void(0);" onclick="window.history.back()">
                        <button class="btn btn-primary" type="button">返回</button>
                    </a>
                </div>
            </form>
        </div>
    </body>
</html>